package com.rest.cofig;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

public class SpringMvcSupport extends WebMvcConfigurationSupport {
    @Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
//        负责访问page页面时不要通过MVC
//        http:localhost:8080/rest/a.html
    registry.addResourceHandler("/pages/**").addResourceLocations("/pages/");
    }
}
